package Interfaces;

import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.GridBagLayout;
import javax.swing.BorderFactory;
import java.awt.Color;
import javax.swing.border.TitledBorder;
import java.awt.Font;
import javax.swing.JButton;
import java.awt.GridBagConstraints;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JOptionPane;
import javax.swing.ListSelectionModel;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class VentanaActualizar extends JFrame {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JPanel jPanel = null;
	private JButton buscar1 = null;
	private JButton actualizar = null;
	private JTable empleados = null;
	private JLabel jLabel = null;
	private JTextField jTextField = null;
	/**
	 * This is the default constructor
	 */
	public VentanaActualizar() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(449, 486);
		this.setResizable(false);
		this.setContentPane(getJContentPane());
		this.setTitle("Actalizar Datos");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(getJPanel(), null);
			jContentPane.add(getActualizar(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jPanel	
	 * 	
	 * @return javax.swing.JPanel	
	 */
	private JPanel getJPanel() {
		if (jPanel == null) {
			jLabel = new JLabel();
			jLabel.setBounds(new Rectangle(22, 34, 53, 16));
			jLabel.setText("Cedula");
			jPanel = new JPanel();
			jPanel.setLayout(null);
			jPanel.setBounds(new Rectangle(7, 28, 418, 345));
			jPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, Color.orange), "Empleado", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD, 12), new Color(51, 51, 51)));
			jPanel.add(getBuscar1(), null);
			jPanel.add(getEmpleados(), null);
			jPanel.add(jLabel, null);
			jPanel.add(getJTextField(), null);
		}
		return jPanel;
	}

	/**
	 * This method initializes buscar1	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getBuscar1() {
		if (buscar1 == null) {
			buscar1 = new JButton();
			buscar1.setBounds(new Rectangle(17, 78, 82, 24));
			buscar1.setText("Buscar");
		}
		return buscar1;
	}

	/**
	 * This method initializes actualizar	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getActualizar() {
		if (actualizar == null) {
			actualizar = new JButton();
			actualizar.setBounds(new Rectangle(157, 387, 94, 26));
			actualizar.setText("Actualizar");
		}
		return actualizar;
	}

	/**
	 * This method initializes empleados	
	 * 	
	 * @return javax.swing.JTable	
	 */
	private JTable getEmpleados() {
		if (empleados == null) {
			empleados = new JTable();
			empleados.setBounds(new Rectangle(6, 122, 406, 82));
			empleados.setColumnSelectionAllowed(false);
			empleados.setShowGrid(true);
			empleados.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
			empleados.setFont(new Font("Dialog", Font.PLAIN, 12));
			empleados.setRowHeight(15);
			empleados.setCellSelectionEnabled(true);
		}
		return empleados;
	}

	/**
	 * This method initializes jTextField	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	private JTextField getJTextField() {
		if (jTextField == null) {
			jTextField = new JTextField();
			jTextField.setBounds(new Rectangle(87, 33, 99, 20));
		}
		return jTextField;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
